package ycj.learn.spring.aop;

import ycj.learn.spring.common.HelloController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableAspectJAutoProxy
@Configuration
public class Config {

    @Bean
    public HelloController helloController() {

        return new HelloController();
    }

    @Bean
    public AppAspect testAspect() {

        return new AppAspect();
    }
}
